package edu.bbu.bs.backend.repository.beans;

import java.util.List;

import javax.annotation.Resource;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;

import edu.bbu.bs.backend.model.Author;
import edu.bbu.bs.backend.repository.AuthorRepository;
import edu.bbu.bs.backend.repository.exceptions.RepositoryException;

@Stateless (name = "AuthorRepository", mappedName = "ejb/AuthorRepository")
public class AuthorRepositoryBean extends BaseRepositoryBean<Author, Long> implements AuthorRepository {
	
//	@Resource private SessionContext ctx;

	public AuthorRepositoryBean() {
		super (Author.class);
	}

	@Override
	public List<Author> getAuthorsByTitleId(final Long titleId)
			throws RepositoryException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Author> getAuthorsByFilter(final String pattern) {
		// TODO Auto-generated method stub
		
//		ctx.getCallerPrinciple();
		return null;
	}

}
